package com.ac.api.process_history.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工序任务历史记录表
 * </p>
 *
 * @author dc
 * @since 2025-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ProcessHistory", description="工序任务历史记录表")
public class ProcessHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "历史记录ID")
    @TableId(value = "history_id", type = IdType.AUTO)
    private Integer historyId;

    @ApiModelProperty(value = "任务单编号")
    private Integer taskId;

    @ApiModelProperty(value = "工序名（固晶/焊线/封装）")
    private String processName;

    @ApiModelProperty(value = "任务开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "任务结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "本次任务良品率（单位：%）")
    private double yieldRate;

    @ApiModelProperty(value = "工序任务状态")
    private String status;

    @ApiModelProperty(value = "记录时间")
    private LocalDateTime recordTime;


}
